<?php
//inloggen
if(isset($_POST["login"])){
	$login = new Login();
	echo $login->logincheck($_POST["username"], $_POST["password"]);
}
include("includes/header.php");
?>
<form name="login" action="" method="POST">
    <fieldset>
        <legend>Log on</legend>
        <label for="username">Username:</label><input type="text" name="username" id="username" value=""/><br />
        <label for="password1">Password:</label><input type="password" name="password" id="password" value=""/><br />
        <input type="submit" name="login" value="Log in" />
    </fieldset>
</form>